package com.lh.controller;

import com.lh.entity.table.ProcessLinkRecord;
import com.lh.service.ProcessLinkRecordService;
import com.lh.utils.Answer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/ProcessLinkRecord")
public class ProcessLinkRecordController {
    @Autowired
    private ProcessLinkRecordService processLinkRecordService;

    @RequestMapping("/add")
    public Answer<Object> add(@RequestBody ProcessLinkRecord processLinkRecord) {
        return processLinkRecordService.add(processLinkRecord);
    }

    @RequestMapping("/updateById")
    public Answer<Object> updateById(@RequestBody ProcessLinkRecord processLinkRecord) {
        return processLinkRecordService.updateById(processLinkRecord);
    }

    @RequestMapping("/deleteById")
    public Answer<Object> deleteById(@RequestBody ProcessLinkRecord processLinkRecord) {
        return processLinkRecordService.deleteById(processLinkRecord);
    }

    @RequestMapping("/getAllPageInfo")
    public Answer<Object> getAllPageInfo(@RequestBody ProcessLinkRecord processLinkRecord) {
        return processLinkRecordService.getAllPageInfo(processLinkRecord);
    }
}
